package com.fram.service.admin;

import java.util.List;

import com.fram.bean.admin.distributor.request.DistributorAdminUserAddRequest;
import com.fram.bean.admin.distributor.response.DistributorSearchResponse;
import com.fram.bean.api.project.request.CategoryRequest;
import com.fram.bean.api.project.response.CategoryResponse;
import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProAffairException;
import com.fram.common.exception.ProException;
import com.fram.entity.DistributorFarm;
import com.fram.entity.DistributorProjectCategory;
import com.fram.entity.ProjectGoods;
import com.github.pagehelper.PageInfo;

/**分銷商管理**/
public interface DistributorService {
	
//	/** 分销商增加售卖的类型 **/
//	public void insertProjectCategory(Long distributorId, List<Long> categoryIds) throws ProException;

	// 分销商列表
	public PageInfo<DistributorSearchResponse> list(PageBean<DistributorFarm> request) throws ProException;

	/** 详情 **/
	public DistributorFarm details(Long id) throws ProException;

	/** 新增 **/
	public void add(DistributorFarm request) throws ProException;

	/** 修改或冻结 **/
	public void update(DistributorFarm request) throws ProException;

	/** 根绝分销商id 展示 分类 **/
	public List<CategoryResponse> ListByFarmId(CategoryRequest request) throws ProException;

	/** 增加一级 **/
	public void addProjectCategroy(DistributorProjectCategory request) throws ProException;
	
	// 分销商管理员帐号添加
	public void addDistributorAdminUser(DistributorAdminUserAddRequest request) throws ProAffairException;
	//删除分类
	public List<ProjectGoods> deleteProjectCategroy(Long id,Long distributorId)throws ProException;
	
	//商品处 下拉店铺
	public PageInfo<DistributorFarm> withChildren(PageBean<DistributorFarm> request)throws ProException;

}
